<?php
include("startsess.php");
if($log){
?>

<?php
if(isset($_POST['search_doc'])) $_SESSION['query'] = $_POST;
$query = $_SESSION['query'];

?>
<a href="report_sent.php" target="_blank" >ทำรายงานหนังสือส่ง</a><br /><br />

<?php

$condition = " where ";
$condition = addSecretConSent($condition,$query);
$condition = addRapidCon($condition,$query);
$condition = addDoctypeConSent($condition,$query);
$condition = addTxtCon($condition,$query['doc_no'],"doc_no");
$condition = addTxtCon($condition,$query['headline'],"headline");
$condition = addTxtCon($condition,$query['sender'],"sender");
$condition = addTxtCon($condition,$query['commentdoc'],"comment");
$condition = addDateCon($condition,$query['sent1'],$query['sent2'],"sent_date");
$condition = addDateCon($condition,$query['doc1'],$query['doc2'],"doc_date");

if($condition==" where ") $condition = "";
shDocSearchSent($condition);

?>

<?php
}
include("ft.php");
?>
